#ifndef _INPUT_MANAGER_H
#define _INPUT_MANAGER_H

#include <sys/time.h>
#define INPUT_TYPE_TOUCH 1
#define INPUT_TYPE_NET   2

#ifndef NULL
#define NULL (void *)0
#endif

typedef struct InputEvent{
	struct timeval tTime;
	int iType;
	int iX;
	int iY;
	int iPressure;
	char str[1024];
}InputEvent , *PInputEvent;

typedef struct InputDevice{
	char * name;
	int (*GetInputEvent)(PInputEvent ptInputEvent);
	int (*DeviceInit)(void);
	int (*DeviceExit)(void);
	struct InputDevice * pNext;
}InputDevice , *PInputDevice;
void Register_InputDevice(PInputDevice pInputDevice);
void InputDev_Register();
void InputDevice_Init(void);
int GetInputEvent(PInputEvent ptInputEvent);

#endif
